package com.kymatrix.kycarbon.xsmd.system.server.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kymatrix.kycarbon.xsmd.system.server.model.entity.UserEntity;
import com.kymatrix.kycarbon.xsmd.system.server.model.form.user.PageQueryUserResp;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * @author jiechen
 * @since 2023/8/10 22:04
 */
@Mapper
@Component("emsUserMapper")
public interface UserMapper extends BaseMapper<UserEntity> {

    Page<PageQueryUserResp> pageQuery(
            Page<?> page, @Param("username") String username, @Param("roleName") String roleName);

    UserEntity selectByUsername(String username);

    List<UserEntity> selectLikeByUsername(String username);
}
